import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import vitePluginImp from './plugin';
//import vitePluginImp from 'vite-plugin-imp';

export function AndDesignVueResolve() {
  return {
    ensureStyleFile: true,
    libraryName: 'mooli-mobile',
    esModule: true,
    resolveStyle: (name: string) => {
      return `mooli-mobile/es/${name}/style/index`
    },
  }
}

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    react(),
    vitePluginImp(),
  ],
})
